import requset from '@/utils/request'

// 获取文章分类列表
export const booksAPI = () => {
  return requset.get('/my/cate/list')
}

// 添加分类
export const addAPI = data => {
  return requset.post('/my/cate/add', data)
}

// 删除分类
export const delAPI = id => {
  return requset.delete('/my/cate/del', { params: { id } })
}

// 修改分类
export const updatedAPI = data => {
  return requset.put('/my/cate/info', data)
}
